package org.gxuwz.core.dao.impl;
import  org.hibernate.SessionFactory;
import  org.springframework.stereotype.Repository;  //ע��
import  org.hibernate.Session;
@Repository("BaseDAO")
public class BaseDao {
     private SessionFactory sessionFactory;
     public  SessionFactory getsessionFactory(){
            return  sessionFactory;
      }
     public  void setSessionFactory(SessionFactory sessionFactory){
	        this.sessionFactory=sessionFactory;
      }
     public Session getSession(){
	        Session session=sessionFactory.openSession();
	        return session;
      }
}